package fr.pascal.polymorphisme;

public class Cheval extends Animal {
	
	private String criniere;
	
	public Cheval() {
//		System.out.println("Cheval.Cheval()");
	}
	
	public Cheval(String nom, int age, String criniere) {
		super(nom, age);
		this.criniere = criniere;
//		System.out.println("Cheval.Cheval(nom, age, criniere)");
	}

	public String getCriniere() {
		return criniere;
	}

	public void setCriniere(String criniere) {
		this.criniere = criniere;
	}
	
	@Override
	public String toString() {
		return "Cheval [nom=" + getNom() + ", age=" + getAge() + ", criniere="
				+ criniere + "]";
	}
}
